package org.tio.sitexxx.web.server.controller.tiosite;

import org.tio.http.common.HttpRequest;
import org.tio.http.server.annotation.RequestPath;
import org.tio.sitexxx.service.service.tiosite.CaseService;
import org.tio.utils.resp.Resp;

import com.jfinal.plugin.activerecord.Page;
import com.jfinal.plugin.activerecord.Record;

/**
 * @author tanyaowu
 * 2016年7月22日 上午10:44:13
 */
@RequestPath(value = "/case")
public class CaseController {
	/**
	 *
	 * @author tanyaowu
	 */
	public CaseController() {
	}

	@RequestPath(value = "/page")
	public Resp page(Integer pageNumber, Integer pageSize, HttpRequest request) throws Exception {
		Page<Record> page = CaseService.me.page(pageNumber, pageSize);
		return Resp.ok(page);
	}

}
